package com.wgtgt.big_folder2;

import java.util.Comparator;

import cn.hutool.core.lang.Pair;

public class PairComparator implements Comparator<Pair<String, Long>> {

	@Override
	public int compare(Pair<String, Long> o1, Pair<String, Long> o2) {
		Long value1 = o1.getValue();
		Long value2 = o2.getValue();
		if (value1 > value2) {
			return -1;
		} else if (value1 < value2) {
			return 1;
		} else {
			return 1;
		}
	}

}
